package com.rabbit.job;

import com.rabbit.util.JobLog;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

/**
 * <h1>定时任务测试</h1>
 *
 * @author zjw
 * @date 2022/2/15 17:15
 */
@Component
public class TestJob {

    /**
     * 测试定时任务
     */
    @XxlJob("testJob")
    public void testJob() {
        JobLog.info("***【测试定时任务开始执行】***");
        JobLog.info("***【测试定时任务执行结束】***");
    }

}
